package com.vpx.server.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;


/**
 * <p>
 * 附件管理
 * </p>
 *
 * @author denglw
 * @since 2021-09-04
 */
@Getter
@Setter
@TableName("sys_attach")
@ApiModel(value = "SysAttach对象", description = "附件管理")
public class SysAttach extends BaseEntity {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "附件业务主键")
    private String attachId;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "后缀名")
    private String suffix;

    @ApiModelProperty(value = "本地全路径地址")
    private String fileUrl;

    @ApiModelProperty("上传人")
    private String operatorName;

    @ApiModelProperty(value = "创建人")
    private Long createUserId;

    @ApiModelProperty(value = "修改人")
    private Long updateUserId;

    @ApiModelProperty(value = "版本")
    @Version
    private Integer version;
}
